package cn.ljy.uem.service;

import cn.ljy.authority.service.BaseService;
import cn.ljy.uem.model.SchoolDepartment;
import cn.ljy.uem.model.query.SchoolDepartmentQuery;

import java.util.List;

/**
 * 学校部门业务层接口
 *
 * @author 凡渊
 * @date 2022/07/18 10:39:26
 */
public interface SchoolDepartmentService extends BaseService<SchoolDepartment, SchoolDepartmentQuery> {
    /**
     * 用于提供给前端的树形
     * 说明：
     * 1.先从数据库找到树
     * 2.然后再从结果树中找到结果
     * @param schoolDepartmentQuery 查询条件
     * @return
     */
    List<SchoolDepartment> findTree(SchoolDepartmentQuery schoolDepartmentQuery);
}
